package com.chenjj.seckill.servicelimit;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

@Service
public class SomeServiceImpl implements  SomeService{

    public Logger logger = LoggerFactory.getLogger(this.getClass());

    @Override
    @ServiceLimitNonBlock
    public void doSomethingNonBlock() {
        logger.info("doSomething run（非阻塞）");
    }

    @Override
    @ServiceLimitBlock
    public void doSomethingBlock() {
        logger.info("doSomething run（阻塞）");
    }
}
